﻿namespace IBTrader.Model
{
    using IBTrader.Frontend;
    using System;
    using System.Collections.ObjectModel;

    public class Logs : ObservableCollection<Log>
    {
        public Logs()
        {
            Add(new Log());
        }
    }
    public class Log : NotifyPropertyChanged
    {
        public Log()
        {
            dateTime = DateTime.Now;
        }
        private string name, text;
        private DateTime dateTime;
        public DateTime DateTime { get { return dateTime; } set { dateTime = value; Changed(() => DateTime); } }
        public string Name { get { return name; } set { name = value; Changed(() => Name); } }
        public string Text { get { return text; } set { text = value; Changed(() => Text); } }
    }
}
